package com.mt.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mt.VO.ShowCinemaScheduleVO;
import com.mt.pojo.Cinema;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Wang
 * @since 2020-12-11
 */
@Mapper
public interface CinemaMapper extends BaseMapper<Cinema> {
    List<Cinema> searchCinema(@Param("key") String key, @Param("area") String area);
    List<ShowCinemaScheduleVO> listCinemaScheduleByFilm(@Param("filmId") int filmId, @Param("scheduleDate") String scheduleDate,
                                                        @Param("nowTime") String nowTime);

    List<Integer> getCinemaScheduleList(@Param("cinemaId")int cinemaId);

    List<Cinema> pageCinema(IPage<Cinema> page, @Param("cinemaName") String cinemaName);


}
